<template>
  <el-container>
    <el-header>
      <div class="title">电商管理后台</div>
      <div class="logout">
        <el-button size="small" type="warning">退出</el-button>
      </div>
    </el-header>
    <el-container>
      <Menu/>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>
<script>
import Menu from "@/layouts/menu.vue";
export default {
  components:{
    Menu,
  },
  data() {
    return {
      visiable:"123",
    };
  },
  mounted() {
    this.$axios.get("/home/swiperdata").then(res=>{
      console.log(res,1111);
    })
  },
};
</script>
<style lang="less" scoped>
.el-container {
  .el-header {
    background: #b3c0d1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .title {
      font-weight: bold;
      font-size: 24px;
    }
  }
  .el-aside {
    background: #545c64;
    height: calc(100vh - 60px);
  }

  .el-main {
    height: calc(100vh - 60px);
    overflow: scroll;
  }
}
</style>